import {Text, View} from 'react-native';

export default function App() {
  return (
    <View>
      <Text>父组件</Text>
      <Child />
    </View>
  );
}

function Child() {
  return <Text>子组件</Text>;
}
